﻿using System;
using System.ComponentModel.DataAnnotations.Schema;
using DapperExtensions.Mapper;
namespace LS.Entitys
{
    /// <summary>
    /// 系统配置表
    /// </summary>
    [Table("sys_configure")]
    public class SysConfigurationEntity:EntityBaseDel
    {
        /// <summary>
        /// 编码
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 名称
        /// <summary>
        public string Title { get; set; }
        /// <summary>
        /// 启用开关  1=启用 0=未启用
        /// </summary>
        public int OnOff { get; set; }
        /// <summary>
        /// 参数
        /// <summary>
        public string Args { get; set; }
        /// <summary>
        /// 日期
        /// </summary>
        public DateTime CreateDate { get; set; }
        /// <summary>
        /// 备注
        /// <summary>
        public string Remark { get; set; }
    }
    public class SysConfigurationEntityMapper : ClassMapper<SysConfigurationEntity>
    {
        public SysConfigurationEntityMapper()
        {
            Table("sys_configure");
            AutoMap();
        }
    }
}
